package indi.latch;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * Title: ExecutorDemo
 * Description:
 * Copyright: 数禾科技 Copyright(c) 2021/6/3
 * Encoding: UNIX UTF-8
 *
 * @author 徐林
 */
public class ExecutorDemo {

    public static void main(String[] args) {
        ExecutorService executorService = Executors.newFixedThreadPool(5);
        System.out.println(((ThreadPoolExecutor) executorService).getTaskCount() + "\t" + ((ThreadPoolExecutor) executorService).getActiveCount());
    }
}
